package com.jqh.demo.utils;

/**
 * @author jqh
 */
public class Judge {
    public static R judge(Boolean flag,String msg){
        if(flag){
            return R.ok();
        }else {
            return R.error().message(msg);
        }

    }

}
